# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Antony J.R. <antonyjr@pm.me>
pkgname=device-asus-z00l
pkgdesc="ASUS Zenfone 2 Laser (720p)"
pkgver=7
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916
	 soc-qcom-msm8916 soc-qcom-msm8916-rproc"
makedepends="devicepkg-dev"
source="deviceinfo modules-initfs"
subpackages="
	$pkgname-nonfree-firmware:nonfree_firmware
"
_pmb_select="soc-qcom-msm8916-rproc"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
	depends="firmware-qcom-adreno-a300 msm-firmware-loader firmware-asus-z00l-wcnss-nv"
	mkdir "$subpkgdir"
}

sha512sums="
7a343ddeb7ae5cea86c9b51b5d132b68aa7d34080ceb06ebc18242e8707db25fbd16341febc510acd8963b36e9fde30c91d74892e2b70115c2714bb778d5d316  deviceinfo
868ea93ae3be2a9b2be7cac329b66b7be6f7e72ade7bd111d7b354dcd81a23f4e0d7f4dc617f8d1321a14bbac803778150cce1bff21cd0ed3846803f3d2ed70c  modules-initfs
"
